﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingletonPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            //获取唯一可用的对象
            Singleton sigleton = Singleton.CreateInstance();
            sigleton.TestMsg();


            var sigletbnb = SingletonB.Instance;
            sigletbnb.TestMsg();
        }
    }
}
